package org.mozhu.file.manager.mount;

public class MountDirectory {

	private MountMeta mountMeta;

	private String realPath;

	private String virtualPath;

	public MountDirectory(MountMeta mountMeta) {
		this.mountMeta = mountMeta;
	}

	public MountDirectory setVirtualPath(String virtualPath) {
		this.virtualPath = virtualPath;
		this.realPath = mountMeta.getRealPath(virtualPath);
		return this;
	}

	public String getRealPath() {
		return realPath;
	}

	public String getRealPath(String fileName) {
		return realPath + "/" + fileName;
	}

	public String getVirtualPath() {
		return virtualPath;
	}

}
